<?php

	if(!isset($_SESSION['username'])) {
		header("Location: ./?page=login");
		die();
	}

?>



<h2>
	Dashboard
</h2>





<div class="content_table">
	<table class="table_header">
		<tr>
			<td>
				<h3>
					Generated Reports
				</h3>
			</td>
			<td style="text-align:right; padding:0px; font-weight:bold;">
				<table align="right">
					<tr>
						<td style="width:60px; text-align:center;">
							<a href="javascript:;" id="previous_reports">
								Previous
							</a>
						</td>

						<td style="width:40px; text-align:center;">
							<a href="javascript:;" id="next_reports">
								Next
							</a>
						</td>

						<td style="text-align:center;">
							<select id="report_count">
								<option value="10">10 Entries</option>
								<option value="25">25 Entries</option>
								<option value="50">50 Entries</option>
								<option value="100">100 Entries</option>
							</select>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>

	<table id="reports_table" style="width:100%;" cellspacing="0" cellpadding="0">
		<tr id="header_row">
			<td class="column_title">
				Report Template
			</td>
			<td class="column_title">
				Parameters
			</td>
			<td class="column_title">
				Generated On
			</td>
			<td class="column_title">
				Built in
			</td>
			<td class="column_title" style="width:120px;">
				Format
			</td>
			<td class="column_title" style="width:40px;">
				&nbsp;
			</td>
		</tr>
	</table>
</div>




<div class="content_table">
	<table class="table_header">
		<tr>
			<td>
				<h3>
					Templates
				</h3>
			</td>
			<td style="text-align:right;">
				<!-- Do we need pagination here?
				<select id="report_count">
					<option value="10">10 Entries</option>
					<option value="25">25 Entries</option>
					<option value="50">50 Entries</option>
					<option value="100">100 Entries</option>
				</select>
				-->
			</td>
		</tr>
	</table>

	<table id="templates_table" style="width:100%;" cellspacing="0" cellpadding="0">
		<tr>
			<td class="column_title">
				Title
			</td>
			<td class="column_title">
				Description
			</td>
			<td class="column_title">
				Last Changed
			</td>
			<td class="column_title">
				&nbsp;
			</td>
		</tr>
	</table>
</div>

<div style="width:100%; text-align:right;">
	<a href="./?page=template_builder">Create new report template</a>
</div>